package com.fyh.feign.fallback;

import com.fyh.constant.MessageConstant;
import com.fyh.entity.common.Result;
import com.fyh.entity.job.DeliveryRecord;
import com.fyh.feign.EmployerChatFeignClient;
import org.springframework.stereotype.Component;

@Component
public class EmployerChatFeignClientFallback implements EmployerChatFeignClient {
    @Override
    public Result addChatContact(Long contactId, Long userId) {
        System.out.println(MessageConstant.ADD_CONTACT_FAILED);
        throw new RuntimeException(MessageConstant.ADD_CONTACT_FAILED);
    }

    @Override
    public Result sendDeliveryStatusInform(DeliveryRecord deliveryRecord) {
        System.out.println(MessageConstant.SEND_DELIVERY_STATUS_INFORM_FAILED);
        throw new RuntimeException(MessageConstant.SEND_DELIVERY_STATUS_INFORM_FAILED);
    }
}
